package org.hgg.workflow.admin.service.impl;

import org.hgg.workflow.admin.mapper.TaskMapper;
import org.hgg.workflow.admin.model.Task;
import org.hgg.workflow.admin.service.IWorkFlowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Jarvis
 * @date 2023/12/28 19:36
 */
@Service
public class WorkFlowServiceImpl implements IWorkFlowService {
    @Resource
    private TaskMapper taskMapper;

    @Override
    public void startWorkflow(Integer workflowId) {

    }

    @Override
    public void insertTask(Task task) {
        taskMapper.insert(task);
    }

    @Override
    public List<Task> getTaskByWorkflowId(Integer workflowId) {
        return taskMapper.selectByWorkflowId(workflowId);
    }
}
